package linuxbox.admin.logic;

public class ContactInfo {
    private Integer m_iID = null;
    private String m_sAddress = null;
    private String m_sAddress2 = null;
    private String m_sCity = null;
    private String m_sState = null;
    private Country m_oCountry = null;
    private String m_sZipCode = null;
    private String m_sPhone = null;
    private String m_sPhone2 = null;
    private String m_sFax = null;
    private String m_sMobile = null;
    private String m_sEmail = null;

    public ContactInfo() {
    }
    
    public ContactInfo(String addr, String city, String state, Country country,
                       String zip, String phone) {
    	m_sAddress = addr;
        m_sCity = city;
        m_sState = state;
        m_oCountry = country;
        m_sZipCode = zip;
        m_sPhone = phone;
    }

    public Integer getID() {
        return m_iID;
    }

    public void setID(int id) {
        m_iID = new Integer(id);
    }

    public String getAddress() {
        return m_sAddress;
    }
	
    public void setAddress(String str) {
        //debug("get into setAddress - " + str);
        m_sAddress = str;
    }
	
    public String getAddress2() {
        return m_sAddress2;
    }
    
    public void setAddress2(String str) {
        m_sAddress2 = str;
    }
    
    public String getCity() {
        return m_sCity;
    }
	
    public void setCity(String city) {
        m_sCity = city;
    }
	
    public String getState() {
        return m_sState;
    }
	
    public void setState(String str) {
        m_sState = str;
    }
		
    public Country getCountry() {
        return m_oCountry;
    }
    
    public void setCountry(Country obj) {
        m_oCountry = obj;
    }
    
    public String getZipCode() {
        return m_sZipCode;
    }
	
    public void setZipCode(String zip) {
        m_sZipCode = zip;
    }
	
    public String getPhone() {
        return m_sPhone;
    }	
	
    public void setPhone(String phone) {
        m_sPhone = phone;
    }
	
    public String getPhone2() {
        return m_sPhone2;
    }   
    
    public void setPhone2(String str) {
        m_sPhone2 = str;
    }
    
    public String getFax() {
        return m_sFax;
    }
	
    public void setFax(String fax) {
        m_sFax = fax;
    }
	
    public String getMobile() {
        return m_sMobile;
    }
	
    public void setMobile(String mobile) {
        m_sMobile = mobile;
    }
	
    public String getEmail() {
        return m_sEmail;
    }
	
    public void setEmail(String email) {
        m_sEmail = email;
    }

    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("id=" + m_iID + "\n");
        sb.append("address=" + m_sAddress + "\n");
        sb.append("address2=" + m_sAddress2 + "\n");
        sb.append("city=" + m_sCity + "\n");
        sb.append("state=" + m_sState + "\n");
        sb.append("country=" + m_oCountry + "\n");
        sb.append("zipcode=" + m_sZipCode + "\n");
        sb.append("phone=" + m_sPhone + "\n");
        sb.append("phone2=" + m_sPhone2 + "\n");
        sb.append("fax=" + m_sFax + "\n");
        sb.append("mobile=" + m_sMobile + "\n");
        sb.append("email=" + m_sEmail + "\n");
        
        return sb.toString();
    }
    
    public void debug(Object obj) {
    	System.out.println("From ContactInfo: " + obj);
    }
}